home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / maestro / source / portmngr / portlist.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-15  |  2.1 KB  |  58 lines

  1. /*
  2.  * Copyright (c) 1990, 1991 Stanford University
  3.  *
  4.  * Permission to use, copy, modify, and distribute this software and 
  5.  * its documentation for any purpose is hereby granted without fee, provided
  6.  * that (i) the above copyright notices and this permission notice appear in
  7.  * all copies of the software and related documentation, and (ii) the name
  8.  * Stanford may not be used in any advertising or publicity relating to
  9.  * the software without the specific, prior written permission of
  10.  * Stanford.
  11.  * 
  12.  * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  13.  * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  14.  * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  15.  *
  16.  * IN NO EVENT SHALL STANFORD BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
  17.  * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES
  18.  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT
  19.  * ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY,
  20.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  21.  * SOFTWARE.
  22.  */
  23.  
  24. /* $Header: /Source/Media/drapeau/PortManager/RCS/PortList.h,v 1.3 91/09/18 13:06:29 drapeau Exp Locker: drapeau $ */
  25. /* $Log:    PortList.h,v $
  26.  * Revision 1.3  91/09/18  13:06:29  drapeau
  27.  * Changed the name of the major include file from LinkProtocol.h to MAEstro.h, in keeping with the
  28.  * project name.
  29.  * 
  30.  * Revision 1.2  91/06/17  18:14:34  drapeau
  31.  * Added copyright notice.
  32.  * 
  33.  * Revision 1.1  90/11/30  13:44:48  drapeau
  34.  * Initial revision
  35.  *  */
  36.  
  37. #ifndef _PortList_
  38. #define _PortList_
  39.  
  40. static char portListHeaderRcsid[] ="$Header: /Source/Media/drapeau/PortManager/RCS/PortList.h,v 1.3 91/09/18 13:06:29 drapeau Exp Locker: drapeau $";
  41.  
  42. #include <stdio.h>
  43. #include <MAEstro.h>
  44.  
  45. typedef struct _PortList
  46. {
  47.   Port*            port;
  48.   struct _PortList*    next;
  49. } PortList;
  50.  
  51. PortList*    NewPortList();
  52. void        DestroyPortList(PortList* portList);
  53. void         PortListAddPortToList(PortList** portListPtr, Port* newPort);
  54. void         PortListPrint(PortList* portList);
  55. void        PortListRemovePortFromList(PortList** portListPtr, Port* portToRemove);
  56.  
  57. #endif
  58.